package com.ant.storage.controller;


import com.ant.storage.common.ResultPage;
import com.ant.storage.common.ResultVo;
import com.ant.storage.dto.DepreciationDto;
import com.ant.storage.service.IDepreciationDetailsService;
import com.ant.storage.service.IDepreciationService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author melon
 * @since 2023-12-23
 */
@RestController
@RequestMapping("/depreciationDetails")
public class DepreciationDetailsController {

    @Autowired
    private IDepreciationDetailsService detailsService;


    @ApiOperation(value = "获取物品库存数据列表")
    @GetMapping("/getDepreciationDetailsList")
    public ResultPage getDepreciationDetailsList(DepreciationDto dto) {
        return ResultPage.success("操作成功", detailsService.getPageList(dto));
    }
}
